package team.jaman.autosell.service;
/**
 * 订单业务层
 * @author Administrator
 *
 */

import java.util.List;

import team.jaman.autosell.entity.Orders;
import team.jaman.autosell.entity.Users;
import team.jaman.autosell.tools.OrdersCount;
import team.jaman.autosell.tools.PageData;
import team.jaman.autosell.tools.Param;

public interface OrdersService {
	/**
	 * 根据用户名关键字模糊查询
	 * @param page 当前页
	 * @param limit 每页记录数
	 * @param userkeyword 用户名关键字
	 * @return
	 */
	public PageData<Orders> getOrdersByLike(int page, int limit, String userkeyword);
	
	/**
	 * 下单
	 * @param param 下单信息通用类
	 * @return true,下单成功  false,下单失败
	 */
	public boolean insertOrders(Param param);
	
	public List<OrdersCount> selectOrdersCountDay();
	
	public List<OrdersCount> selectOrdersCountMonth();
	
	/**
	 * 根据用户查询订单
	 * @param Users 用户对象
	 * @return
	 */
	public List<Orders> getOrdersByUser(int userId);
}
